//
//  YZMTradeSettlementModel.m
//  YZMicroStock
//
//  Created by wangminhong on 16/4/14.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMTradeSettlementModel.h"
#import "Mantle+Utils.h"

@implementation YZMTradeSettlementModel

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"tid":@"id",
             @"stockName":@"stockName",
             @"amount":@"volumeDeal",
             @"totalProfit":@"profitTotal",
             @"profit":@"profitShare",
             @"holdNum":@"holdNum",
             @"strategyId":@"strategyId",
             @"profitFree":@"profit",
             @"userProfit":@"userProfit",
             };
}

- (void)setNilValueForKey:(NSString *)key
{
    
}

+ (NSValueTransformer *)tidJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLLongStringTransformerName];
}

+ (NSValueTransformer *)totalProfitJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)profitJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}


@end
